using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//
using SJBotGame.SJBotGameComponents;

namespace SJBotGame
{
    public partial class SJBotGame_Form : Form
    {
        SJBotSheet sheet;
        SJBotSheetDraw sheetDraw;
        public SJBotGame_Form()
        {
            InitializeComponent();
            sheet = new SJBotSheet(10, 10, 6);
            sheetDraw = new SJBotSheetDraw(sheet, this.ClientRectangle, this.CreateGraphics());
        }

        private void SJBotGame_Form_Paint(object sender, PaintEventArgs e)
        {
            sheetDraw.Draw();
        }

        private void SJBotGame_Form_MouseClick(object sender, MouseEventArgs e)
        {
            sheetDraw.SelectTitle(new Point(e.X, e.Y));
        }
    }
}